# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-evoopt
_pkgorig=EvoOpt
pkgver=0.14
pkgrel=4
pkgdesc="Python implementation of meta-heuristic and evolutionary optimisation algorithms"
url="https://github.com/tsyet12/EvoOpt"
arch="noarch"
license="BSD-2-Clause"
depends="
	python3
	py3-numpy
	py3-matplotlib
	"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/E/EvoOpt/EvoOpt-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

# no tests provided by the upstream; use smoke tests
check() {
	PYTHONPATH=build/lib python3 -c "from EvoOpt import *"
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
07722aa5aef504fbf39804aa46519f68efbeecbfe9fb5556d90a613f50e832969dc63103ec1bed63960c1a1cc423509f4519a6ec65016d879eefd4b3e5f420b4  py3-evoopt-0.14.tar.gz
"
